package com.qixiucoding.pojo.rule;

import com.qixiucoding.baseRule.abs.AbstractRule;
import com.qixiucoding.pojo.RuleDto;

import static com.qixiucoding.baseRule.abs.RuleConstant.*;

/**
 * @Description TODO
 * @Author longhj
 * @Date 2022/01/16 星期日 0:42
 */
public class AddressRule extends AbstractRule {
    @Override
    public boolean execute(RuleDto dto) {
        System.out.println("AddressRule invoke!");
        if (dto.getAddress().startsWith(MATCH_ADDRESS_START)) {
            return true;
        }
        return false;
    }
}
